Returns the next period after the specified date with the specified duration, which is not occupied by items associated with the specified contacts.
Namespace: MindFusion.Scheduling
Assembly: MindFusion.Scheduling
C# Copy Code |
---|
public DateTime GetFreePeriod ( |
Visual Basic Copy Code |
---|
Public Function GetFreePeriod( _ |
The start date of the interval in which to search for a free period.
The end date of the interval in which to search for a free period.
The required minimum duration of the period.
The contacts whose items should be considered when looking for the free period.
A DateTime object representing the start time of the period found or DateTime.MinValue if none.
If there are recurring items associated with a resource in the specified collection, the function execution might take very long if a period with the specified duration doesn't exist.